<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<%
		if (session.getAttribute("uname") == null
						|| session.getAttribute("uname").equals("")) {
	%>
	您好，欢迎加入参与式感知！
	<a href="login.jsp">[请登录]</a>
	<a href="register.jsp">[免费注册]</a>
	<%
		} else {
	%>
	您好
	<a href="myinf.jsp"> <font><%=session.getAttribute("uname")%></font>
	</a>，欢迎来到参与式感知！
	<a href="user/logout.do">[注销]</a>
	<% 	
		}
	%>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>

